package chap4.Task;
public class Task1 {
    public static void main(String[] args) {
        int i = 1;
        while (i <= 1000) {
            System.out.print(" " + i);
            if (i % 20 == 0) {
                System.out.println();
            }
            i++;

        }
    }

}
